package com.resource.fxLoader
{
	import flash.display.BitmapData;
	import flash.display.MovieClip;
	import flash.events.EventDispatcher;
	import flash.events.IEventDispatcher;
	import flash.media.Sound;
	import flash.utils.ByteArray;
	import flash.utils.Dictionary;
	
	
	/**
	 * 二进制资源转换的抽象类，自定义的转换类需继承此类 
	 * @author tangjian
	 * 
	 */	
	public class AbstractResource extends EventDispatcher implements IResource
	{
		public function AbstractResource(target:IEventDispatcher=null)
		{
			super(target);
		}
		/**
		 * 转换二进制数据的方法，实现对二进制数据的转换
		 * @param bytes
		 * 
		 */		
		public function parse(bytes:ByteArray):void
		{
		}
		
		public function parseSound(data:Sound):void
		{
			
		}
		
		public function getBitmapdata():BitmapData
		{
			return null;
		}
		
		public function getSound():Sound
		{
			return null;
		}
		
		public function getString():String
		{
			return null;
		}
		public function getXML():XML
		{
			return null;
		}
		public function getObject():Object
		{
			return null;
		}
		
		public function getMovieClip():MovieClip
		{
			// TODO Auto Generated method stub
			return null;
		}
		
		public function dispose():void
		{
			
		}
		
		public function getContentDic():Dictionary
		{
			return null;
		}
		
	}
}